/**
 * 
 */
package research.sbookmarking;

import java.util.*;

/**
 * This class is the wrapper class for data generated from random users of
 * Connotea.org
 * <p>
 * @author <a href="mailto:aatleung@gmail.com">Albert Leung</a>
 * @version 1.0
 * 
 */
public final class GeneralContainer extends DataContainer {

	// contains a list of Users found on top of study group
	private List uniqueUsers = null;
	
	/**
	 * Create a new GeneralContainer instance using the supplied list of
	 * Bookmark, list of Tags, and list of users.
	 * <p>
	 * 
	 * @param bmarks the list of unique bookmarks gather from the data mining 
	 * 				 of Connotea  
	 * @param tempTags the list of unique tags gather from the data mining of 
	 * 				   Connotea  
	 * @param unique the list of unique users who have bookmarked the 
	 * 				 bookmarks mined
	 */
	public GeneralContainer (List bmarks, List tempTags, List unique, 
							 HashMap freqBook, HashMap freqTag) { 
/*
		setBookmarks(bmarks);
		setTags(tempTags);
		setFreqBookmarks(freqBook);
		setFreqTags(freqTag);
*/
		super(bmarks,tempTags,freqBook,freqTag);
		setUniqueUsers(unique);
	}

	/**
	 * While data mining of Connotea a list of unique users was created
	 * from the bookmarks retreived so this method save that information
	 * into this container
	 * <p>
	 * @param users the list of unique users who have bookmarked the 
	 * 				bookmarks mined
	 */
	private void setUniqueUsers(List users){
		uniqueUsers = users;
	}

	/**
	 * Gets the list of unique users found during the data mining of Connotea.
	 * <p>
	 * @return the generated list of users of Connotea stored in this 
	 * 		   wrapper 
	 */
	public List getUniqueUsers() {
		return uniqueUsers;
	}

	/*
	 * 
	 * @param user
	public void addUniqueUsers(String user) {
		uniqueUsers.add(user);
	}
	 */
	
	/*
	public static void main(String[] args) {
		// TODO Auto-generated method stub

		System.out.println("An instance of DataContainer:" + DataContainer.getInstance());
		System.out.println("An instance of GeneralContainer:" + (GeneralContainer.getInstance()).hashCode());
	}
	*/
}
